/**
 * 学习目标：创建class组件
 * 语法: class Xxx extends React.Component {
 *
 *  render(){
 *    return jsx 或 null
 *  }
 *
 * }
 *
 */
import React, { Component } from 'react';
import ReactDOM from 'react-dom';

class App extends Component {
  // 💥
  render() {
    return <h1>App</h1>;
  }
}

const divNode = (
  <>
    <App></App>
  </>
);

ReactDOM.render(divNode, document.getElementById('root'));
